package com.daona.job;

import com.daona.job.service.PdfJobFacade;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@ComponentScan(basePackages = {
        "com.daona.job",
        "com.daona.infrastructure.config",
        "com.daona.infrastructure.minio"
})
@MapperScan("com.daona.infrastructure.repository.db.mapper")
public class JobApplication implements CommandLineRunner {

    @Autowired
    private PdfJobFacade jobHandler;

    public static void main( String[] args ) {
        SpringApplication.run(JobApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        //jobHandler.HandlePdfJob(null);
    }
}
